﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RateDishes.aspx.vb" Inherits="JamaicanKitchen.RateDishes" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
    <p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1" Width="385px">
        <Columns>
            <asp:BoundField DataField="Dish" HeaderText="Dish" SortExpression="Dish" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:JamaicanConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:JamaicanConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [Dish] FROM [DishRatings] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
    <p>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
</p>
    <asp:Rating ID="Rating1" runat="server" EmptyStarCssClass="empty" 
         FilledStarCssClass="smiley" StarCssClass="smiley-done" 
         WaitingStarCssClass="smiley" MaxRating="5" CurrentRating="3">
    </asp:Rating>
    
    <br />
    <br />
    <br />
    <asp:Button ID="btn_saveR" runat="server" Text="Save Rating" Width="124px" />
    <br />
    <br />
    
<br />
</asp:Content>

